@import "./variables";

* {
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    vertical-align: middle;
}

.hidden {
    display: none;
}

.top-view {
    margin-left: $columnWidth;
}

.view {
    padding: 0 10px;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .9);

    .message {
        position: relative;
        top: 100px;
        text-align: center;
        font-size: 36px;
        color: #ffd600;
        font-weight: 800;
        text-shadow: 2px 2px 2px #000;
    }
}

.contain-right {
    text-align: right;
}

fieldset {
    border: 1px solid #13A3A9;
    border-radius: $borderRadius;
}

.btns {
    display: inline-block;
    .btn {
        margin: 0 5px;
    }

    &.block {
        display: block;
        margin: 10px 0 10px -5px;
    }
}

.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #13A3A9;
    border: 2px solid #13A3A9;
    border-radius: $borderRadius;
    line-height: 32px;
    height: 36px;
    padding: 0 15px;

    &:hover {
        border-radius: $borderRadius * 2;
    }

    &.btn-critical {
        color: #d74d54;
        border-color: #d74d54;
    }

    &.btn-small {
        border-width: 1px;
        font-size: 16px;
        line-height: 24px;
        height: 26px;
        padding: 0 8px;

        .fa {
            line-height: 24px;
        }
    }

    .fa {
        line-height: 32px;
    }
}

.link-btn {
    display: inline-block;
    text-align: center;
    color: #13A3A9;
    line-height: 30px;
}

input.text-field {
    display: inline-block;
    line-height: 38px;
    height: 40px;
    border: 1px solid #13A3A9;
    border-radius: $borderRadius;
    margin: 5px 0;
    padding: 0 10px;

    &.block {
        display: block;
    }
}

textarea.text-field {
    display: inline-block;
    border: 1px solid #13A3A9;
    border-radius: $borderRadius;
    margin: 5px 0;
    padding: 10px;

    &.block {
        display: block;
    }
}

select.select-field {
    display: inline-block;
    line-height: 38px;
    height: 40px;
    border: 1px solid #13A3A9;
    border-radius: $borderRadius;
    margin: 5px 0;

    &.block {
        display: block;
    }
}

.inline-fields {
    vertical-align: middle;

    .text-field, .select-field, .btn {
        margin-right: 8px;
        vertical-align: middle;
    }
}

.field-label {
    display: block;
}

.hr {
    margin: 5px 0;
    height: 1px;
    background: #8fcacc;
}

.text-right {
    text-align: right;
}

.clearfix:after, .clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden
}

$tab-height: 32px;

.tab-head {
    $height: $tab-height;
    position: absolute;
    width: 100%;
    background: #0b0c0d;
    height: $height;

    .tab {
        $top: 4px;
        display: inline-block;
        position: relative;
        top: $top;
        margin-left: 3px;
        background: #575f66;
        border-radius: 5px 5px 0 0;
        height: $height - $top;
        line-height: $height - $top;
        overflow: hidden;
        font-size: 12px;

        &.active {
            background: #fff;

            .title {
                color: #111;
            }
        }

        a.close {
            position: absolute;
            top: 0;
            right: 4px;
            color: #aaa;
            font-size: 16px;
            z-index: 2;

            &:hover {
                font-size: 18px;
            }
        }

        .title {
            display: block;
            padding: 0 5px;
            color: #aaa;
            text-decoration: none;
            text-align: center;
        }
    }
}

.tab-body {
    box-sizing: border-box;
    height: 100%;
    padding-top: $tab-height;
    padding-bottom: 16px;
    overflow: auto;
}

table.table-default {
    table {
        border: 1px solid #cfcfcf;
    }

    th, td {
        border: 1px solid #cfcfcf;
        padding: 8px 8px;
        vertical-align: middle;
    }

    // 里面是输入控件的单元格，不留内边距
    td.input {
        padding: 0;
    }

}

html, body {
    height: 100%;
    overflow: hidden;

    font-family: "Arvo", Courier, monospace;
}